package org.ellisande.grid.tags;

import javax.servlet.jsp.JspWriter;

import org.ellisande.grid.tags.support.TagBuilder;
import org.ellisande.tld.annotations.Info;
import org.ellisande.tld.annotations.Tag;

@Tag
@Info("Creates a Leaderboard cell that provides a headline or call to action.")
public class LeaderboardTag extends AbstractTag {

	private static final long serialVersionUID = 6017404751366027746L;

	@Override
	public void startTag() throws Exception {
		TagBuilder div = createTagBuilder("div");
		div.addStyle("leaderboard");
		JspWriter out = pageContext.getOut();
		out.println(div.compileStartTag());
	}

	@Override
	public void endTag() throws Exception {
		TagBuilder div = createTagBuilder("div");
		JspWriter out = pageContext.getOut();
		out.println(div.compileEndTag());
	}
}
